package example.pattern.builder;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		TextDirector director = new TextDirector();
		director.setBuilder(new PlainTextBuilder());
		String plainText  = director.constructText();
		System.out.println(plainText);
		System.out.println();
		director.setBuilder(new HtmlTextBuilder());
		String htmlText = director.constructText();
		System.out.println(htmlText);
	}

}
